<?php

include '../Classes/db.php';
include '../Classes/feedbackHandler.php';

$id=$_GET['id'];
$subgr=$_GET['subgr'];
$rel=$_GET['rel'];
$com=$_GET['com'];
//$year=$_GET['year'];
//$month=$_GET['month'];
$dt1=$_GET['date'];
$month=substr($dt1,3,2);
$year=substr($dt1,6,4);
$date=substr($dt1,0,2);

$feed=$_GET['feed'];

$days=$year."-".$month."-".$date;//arrange date format

$x=new DbConnect();
$con=$x->getConnection();

$feedback=new FeedbackHandler();//create a new object
$feedback->setCon($con);
$result=$feedback->feedbackUpdate($id,$subgr,$rel,$days,$com,$feed);
echo $result;

?>


